package com.hmall.common.config;

import feign.RequestInterceptor;
import feign.RequestTemplate;

//@Slf4j
//@Component

public class MyFeignInterceptor implements RequestInterceptor {
    @Override
    public void apply(RequestTemplate template) {

      //  ServletRequestAttributes servletRequestAttributes = (ServletRequestAttributes) RequestContextHolder.getRequestAttributes();

        System.out.println("/////========================///////"+template.url());
        template.header("authorization", "2");

    }
}